import java.util.Stack;

public class MinStack {
    private Stack<Integer> stack;
    private Stack<Integer> minstack;
    public MinStack() {
        stack = new Stack<>();
        minstack = new Stack<>();

    }

    public void push(int val) {
        if(stack.isEmpty()&& minstack.isEmpty()){
            stack.push(val);
            minstack.push(val);
        }else {
            if(val <= minstack.peek()){
                stack.push(val);
                minstack.push(val);
            }
            stack.push(val);

        }
    }

    public void pop() {

    }

    public int top() {
        return -1;
    }

    public int getMin() {
        return  -1;
    }
}
